Skip to content

Add UI Mode Warning Dialog and Handle Device Mode Changes - #120

Merged
ProdigyV21 merged 3 commits into
ProdigyV21:mainfrom
Himanth-reddy:fix/ui-mode-warning-dialog
Apr 5, 2026
Merged

Add UI Mode Warning Dialog and Handle Device Mode Changes#120
ProdigyV21 merged 3 commits into
ProdigyV21:mainfrom
Himanth-reddy:fix/ui-mode-warning-dialog

Conversation

@Himanth-reddy

Copy link
Copy Markdown
Collaborator

This pull request adds a confirmation dialog when changing the UI mode (e.g., TV, Tablet, Phone, Auto) in the settings screen. Instead of switching the mode immediately, users are now prompted to confirm their choice, improving the user experience and preventing accidental changes. The implementation introduces new state variables, a dialog composable, and updates the relevant event handlers.

UI Mode Change Confirmation:

  • Added UiModeWarningDialog composable to display a confirmation dialog when the user attempts to change the UI mode, with keyboard and touch navigation support.
  • Introduced new state variables showUiModeWarningDialog and nextUiMode to manage dialog visibility and the target UI mode.
  • Refactored UI mode change triggers (e.g., onDeviceModeClick, settings option 11) to open the confirmation dialog instead of immediately switching the mode. [1] [2] [3]
  • Added logic to compute the next UI mode and show the dialog when a change is initiated.
  • Rendered the confirmation dialog in the settings screen when showUiModeWarningDialog is true, and applied the mode change only upon confirmation. [1] [2]

@ProdigyV21
ProdigyV21 merged commit 680843f into ProdigyV21:main Apr 5, 2026
2 checks passed
@Himanth-reddy
Himanth-reddy deleted the fix/ui-mode-warning-dialog branch April 12, 2026 17:18
@Himanth-reddy Himanth-reddy added gssoc-approved level:intermediate Intermediate level task quality:clean Clean code implementation type:feature New feature or improvement type:design UI/UX design enhancements gssoc:approved GSSoC approved contribution and removed gssoc:approved labels Jul 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gssoc:approved GSSoC approved contribution level:intermediate Intermediate level task quality:clean Clean code implementation type:design UI/UX design enhancements type:feature New feature or improvement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants